import request from "@/utils/request"

export async function queryMoneyCardTemplateList(params: MoneyCard.QueryTemplateListParams) {
  return request<MoneyCard.Template[]>('/app/manager/moneyModuleList', {
    data: params,
  })
}

export async function addMoneyCardTemplateTemplate(params: Partial<MoneyCard.Template>) {
  return request('/app/manager/addMoneyModule', {
    data: params,
  })
}

export async function getDetail(params: {
  id: number, 
}) {
  return request<MoneyCard.Template>('/app/manager/moneyCard/detail', {
    data: params,
  })
}

export async function delMoneyCardTemplate(params: {
  id: number, 
}) {
  return request('/app/manager/statusMoneyModule', {
    data: params,
  })
}

export async function makeCardBatch(params: {
  id: number, num: number
}) {
  return request('/app/manager/moneyModule/batch', {
    data: params,
  })
}


export async function queryMoneyCardList(params: MoneyCard.QueryMoneyCardListParams) {
  return request<MoneyCard.Entity[]>('/app/manager/moneyCardList', {
    data: params,
  })
}

export async function delMoneyCard(params: {
  id: number, 
}) {
  return request('/app/manager/statusMoneyCard', {
    data: params,
  })
}
